<?php

function iif($condion, $true, $false ) {
    return ($condition ? $true : $false);
}

function random_color()
{
    mt_srand((double)microtime()*1000000);
    $c = '';
    while(strlen($c)<6){
        $c .= sprintf("%02X", mt_rand(100, 255));
    }
    return "#".$c;
}
?>